<?php //pack11class

class ObjectsListItemHeader extends ObjectsListItem {

    protected $object;
    public $colspan=0;

	public function setup() {
        $this->object=$this->parent->getObject();
        $this->addChild(new ObjectsListItemHeaderLeft);

        //$sortableProperties=ObjectsManager::$sortable;
        //usort($sortableProperties,array("ObjectsListHeader","columnPosition"));

        $columnsCount=0;

        foreach(ObjectsListHeader::$sortableProperties as $property) {
            $sortable=new ObjectsListItemHeaderSortable;
            $sortable->draw($property);
            $this->addChild($sortable);
            $columnsCount++;
            if($columnsCount>2) break;
        }
        $this->addChild(new ObjectsListItemHeaderPrice);
    }

}
?>
